package com.hnchances.grade.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author lpj
 * @email ${email}
 * @date 2022-08-27 15:10:23
 */
@Data
@TableName("grades")
public class GradesEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id,key，自增
	 */
	@TableId
	private Integer id;
	/**
	 * 课程关联id
	 */
	private Integer courseId;
	/**
	 * 考试关联id
	 */
	private Integer examId;
	/**
	 * 班级关联id
	 */
	private Integer classId;
	/**
	 * 成绩
	 */
	private BigDecimal grades;
	/**
	 * 学生id
	 * TODO 自行添加字段 -> 考虑到成绩肯定与人对应所以加上学生关联信息
	 */
	private Integer studentId;
	/**
	 * 0-正常，1-删除
	 */
	@TableLogic(value = "1", delval = "0")
	private Integer status;

}
